package cn.edu.fzu.homemaking.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.edu.fzu.homemaking.domain.enums.StatusEnum;
import cn.edu.fzu.homemaking.mapper.SyssUserMapper;
import cn.edu.fzu.homemaking.service.SysCusUserService;
import cn.edu.fzu.homemaking.web.Result;

/**
 * @author yifan
 * @date 2023/4/6
 */
@Service
public class SysCusUserServiceImpl implements SysCusUserService {
    @Resource
    SyssUserMapper syssUserMapper;

    @Override
    public Result update(String name, String email, String phone, String address, String faceUrl, StatusEnum status) {
        syssUserMapper.updateUser(email, null, phone, address, faceUrl, status);
        return Result.SUCCESS;
    }

}
